package com.cunzai.blog.application.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cunzai.blog.common.PO.Article;
import org.apache.ibatis.annotations.Param;

public interface ArticleMapper extends BaseMapper<Article> {

    // 自定义分页查询
    Page<Article> selectArticlesByCategoryAndTag(Page<Article> page,
                                                 @Param("category") Long category,
                                                 @Param("tag") Long tag);
}

